package kr.hkit.powerjava.chapter08;

public class Time {
	private Date dat;
	private int hour;
	private int minute;
	public Time(Date dat, int hour, int minute) {
		super();
		this.dat = dat;
		this.hour = hour;
		this.minute = minute;
	}
	public Date getDat() {
		return dat;
	}
	public void setDat(Date dat) {
		this.dat = dat;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	@Override
	public String toString() {
		return dat + ", " + hour + "시 " + minute
				+ "분";
	}
	
}
